import request from "@/utils/axiosHttp";


// 设备列表
export function deviceEntityList(query) {
	return request({
		url: '/deviceEntity/pageList',
		method: 'get',
		params: query
	})
}

// 解绑
export function deviceEntityUnbind(data) {
	return request({
		url: '/deviceEntity/unbind',
		method: 'post',
		data: data
	})
}

// 转移记录
export function deviceTransferRecordList(query) {
	return request({
		url: '/deviceTransferRecord/pageList',
		method: 'get',
		params: query
	})
}

// 转移
export function deviceTransfer(data) {
	return request({
		url: '/deviceTransferRecord/deviceTransfer',
		method: 'post',
		data: data
	})
}

// 第一次扫码
export function checkEntity(data) {
	return request({
		url: '/deviceEntity/checkEntity',
		method: 'post',
		data: data
	})
}

// 绑定
export function bindEntity(data) {
	return request({
		url: '/deviceEntity/bindEntity',
		method: 'post',
		data: data
	})
}


// 绑定
export function senDpulse(data) {
	return request({
		url: '/deviceEntity/senDpulse',
		method: 'post',
		data: data
	})
}

//流量充值
export function iccidLink(query) {
	return request({
		url: '/deviceEntity/iccidLink',
		method: 'get',
		params: query
	})
}

//修改设备属性
export function updateEntity(data) {
	return request({
		url: '/deviceEntity/updateEntity',
		method: 'post',
		data: data
	})
}

//获取微信 JS-SDK 配置信息
export function getJsSdkConfig(data) {
	return request({
		url: '/weChat/getJsSdkConfig',
		method: 'get',
		params: data
	})
}



